#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>

#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"


/* Exported function */
//TOLUA_API int  tolua_luaMPI_open (lua_State* tolua_S);

#include "../luaMPIUI.h"
#include "../luaMPI.h"



namespace LuaMPI {
	void open_luaMPI(sol::table& module);

	sol::table open_luaMPILua(sol::this_state L) {
		sol::state_view lua(L);
		sol::table module = lua.create_table();
		open_luaMPI(module);
		return module;
	}
}



extern "C" int luaopen_luaMPI(lua_State* L)
{
	return sol::stack::call_lua(L, 1, LuaMPI::open_luaMPILua );
}
